import {$get,$post} from './http'


export const $getCustomer=async(params:object)=>{
    return await $post('./market/rule/customer',params)
}

export const $getGold=async(params:object)=>{
    return await $post('./market/gold/list',params)
}

export const $getCode=async(params:object)=>{
    return await $post('./market/code/list',params)
}
export const $getCodeDetail=async(params:object)=>{
    return await $post('./market/code/detail',params)
}
export const $getCodeStatus=async(params:object)=>{
    return await $get('./market/code/status',params)
}
export const $getAll=async(params:object)=>{
    return await $post('./market/black/all',params)
}
export const $getBlack=async(params:object)=>{
    return await $post('./market/black/black',params)
}
// function login(data?:object){
//     return axios.post('./user/login/',data);
// }

// function register(data:unknown){
//     return axios.post('./user/register/',data);
// }




